import http from '@/utils/httpRequest'
import ApiUrl from '@/utils/api-url'

// eslint-disable-next-line no-unused-vars
let config = {
  headers: {
    'Content-Type': 'multipart/form-data;charset=utf-8'
  },
  transformRequest: [function (data) {
    return data
  }]
}

const loginApi = {

  /**
   * 登录 页面登录方法
   * @param data
   */
  login: function (data) {
    return http({
      baseURL: ApiUrl.API_HOST_BASE,
      url: http.adornUrl('api/system/login/login'),
      method: 'post',
      data: http.adornData(data)
    })
  }

}

export default loginApi